package engine.newUi
{
	import engine.ui.lite.BaseUI;
	
	import flash.display.DisplayObjectContainer;
	import flash.display.MovieClip;
	
	import newx.com.control.NxClip;
	import newx.com.control.button.NxButton;
	import newx.com.control.group.NxViewGroup;
	import newx.com.control.text.NxLabel;

	/**
	 *布陣ui (单例)
	 * @author yanghr
	 * 
	 */	
	public class EmBattleUI extends BaseUI
	{
		private var control:EmbattleLogic=EmbattleLogic.getInstance();
		public var levelLab:NxLabel
		public var priorityLab:NxLabel
		public var embattlePersonLab:NxLabel
		public var radioLab:NxLabel;
		public var listLab:NxLabel;
		public var groupLab1:NxLabel;
		
		public var preEmbaGroup:NxViewGroup
//		public var emBattleGroup:NxViewGroup
		
		public var uplevelBtn:NxButton
		public var evokeBattleBtn:NxButton
		
		public var rankRadio:MovieClip
		
//		public var battleList:NxList
		
		public var mcBG2:MovieClip;
		public var mcBG3:MovieClip;
		public var mcBG1:MovieClip;
		public var mcBG4:NxClip;
		public var mcBG5:MovieClip;
		public var mcBG6:MovieClip;
		public var mcBG7:MovieClip;
		public var mcBG8:MovieClip;
		public var mcBG9:MovieClip;
	
		public var embattle:MovieClip;
		public var embattle1:MovieClip;
		public var embattle2:MovieClip;
		public var embattle3:MovieClip;
		public var embattle4:MovieClip;
		public var embattle5:MovieClip;
		public var embattle6:MovieClip;
		public var embattle7:MovieClip;
		public var embattle8:MovieClip;
		public var embattle9:MovieClip;
		
		public function EmBattleUI()
		{
		}


		override public function Init():void
		{
			rankRadio.visible=radioLab.visible=false;
			control.Init();
		}
		override public function show(space:DisplayObjectContainer=null, onshow:Function=null, ...argc):void
		{
			control.loadAllModel();
		}
		public function showUI():void
		{
			super.show();
		}
		override protected function BeforeShow():void
		{
			control.BeforeShow();
		}
		override protected function AfterHide():void
		{
			control.afterHide();
		}
	}
}
